package com.sun.showcase.client.domain.mall;

import org.apache.commons.lang3.builder.EqualsBuilder;
import org.apache.commons.lang3.builder.HashCodeBuilder;
import org.apache.commons.lang3.builder.ToStringBuilder;

public class Goods implements java.io.Serializable{
	private static final long serialVersionUID = 5454155825314635342L;
    /**
     * id       db_column: id 
     */	
	private String id;
    /**
     * 商品名       db_column: name
     */
	private String name;
    /**
     * 商品编码       db_column: code
     */
	private String code;
    /**
     * 分类名       db_column: classify_name
     */
	private String classifyName;
    /**
     * 分类编码       db_column: classify_code
     */
	private String classifyCode;
    /**
     * 商品详情       db_column: goods_desc
     */
	private String goodsDesc;
    /**
     * 店铺id       db_column: shop_id
     */
	private String shopId;
    /**
     * 店铺名       db_column: shop_name
     */
	private String shopName;
    /**
     * 有效标记(默认为1有效 0无效）       db_column: active_flag
     */
	private String activeFlag;
    /**
     * 创建人ID       db_column: create_by
     */
	private String createBy;
    /**
     * 创建人姓名       db_column: create_by_name
     */
	private String createByName;
    /**
     * 创建时间       db_column: create_date
     */
	private java.util.Date createDate;
    /**
     * 修改人ID       db_column: modified_by
     */
	private String modifiedBy;
    /**
     * 修改人姓名       db_column: modified_by_name
     */
	private String modifiedByName;
    /**
     * 修改时间       db_column: modified_date
     */
	private java.util.Date modifiedDate;

	private String imgList;

	private String publishStatus;

	private Double guidePrice;

	private Double sellPrice;

	private String mainImg;

	private Integer sellCount;

	private String freightId;

	private String freightName;
	//columns END

	public Goods(){
	}

	public Goods(
		String id
	){
		this.id = id;
	}

	public String getFreightId() {
		return freightId;
	}

	public void setFreightId(String freightId) {
		this.freightId = freightId;
	}

	public String getFreightName() {
		return freightName;
	}

	public void setFreightName(String freightName) {
		this.freightName = freightName;
	}

	public Integer getSellCount() {
		return sellCount;
	}

	public void setSellCount(Integer sellCount) {
		this.sellCount = sellCount;
	}

	public Double getGuidePrice() {
		return guidePrice;
	}

	public void setGuidePrice(Double guidePrice) {
		this.guidePrice = guidePrice;
	}

	public Double getSellPrice() {
		return sellPrice;
	}

	public void setSellPrice(Double sellPrice) {
		this.sellPrice = sellPrice;
	}

	public String getMainImg() {
		return mainImg;
	}

	public void setMainImg(String mainImg) {
		this.mainImg = mainImg;
	}

	public String getPublishStatus() {
		return publishStatus;
	}

	public void setPublishStatus(String publishStatus) {
		this.publishStatus = publishStatus;
	}

	public String getImgList() {
		return imgList;
	}

	public void setImgList(String imgList) {
		this.imgList = imgList;
	}

	public void setId(String value) {
		this.id = value;
	}

	public String getId() {
		return this.id;
	}
	public void setName(String value) {
		this.name = value;
	}

	public String getName() {
		return this.name;
	}
	public void setCode(String value) {
		this.code = value;
	}

	public String getCode() {
		return this.code;
	}
	public void setClassifyName(String value) {
		this.classifyName = value;
	}

	public String getClassifyName() {
		return this.classifyName;
	}
	public void setClassifyCode(String value) {
		this.classifyCode = value;
	}

	public String getClassifyCode() {
		return this.classifyCode;
	}
	public void setGoodsDesc(String value) {
		this.goodsDesc = value;
	}

	public String getGoodsDesc() {
		return this.goodsDesc;
	}
	public void setShopId(String value) {
		this.shopId = value;
	}

	public String getShopId() {
		return this.shopId;
	}
	public void setShopName(String value) {
		this.shopName = value;
	}

	public String getShopName() {
		return this.shopName;
	}
	public void setActiveFlag(String value) {
		this.activeFlag = value;
	}

	public String getActiveFlag() {
		return this.activeFlag;
	}
	public void setCreateBy(String value) {
		this.createBy = value;
	}

	public String getCreateBy() {
		return this.createBy;
	}
	public void setCreateByName(String value) {
		this.createByName = value;
	}

	public String getCreateByName() {
		return this.createByName;
	}
	public void setCreateDate(java.util.Date value) {
		this.createDate = value;
	}

	public java.util.Date getCreateDate() {
		return this.createDate;
	}
	public void setModifiedBy(String value) {
		this.modifiedBy = value;
	}

	public String getModifiedBy() {
		return this.modifiedBy;
	}
	public void setModifiedByName(String value) {
		this.modifiedByName = value;
	}

	public String getModifiedByName() {
		return this.modifiedByName;
	}
	public void setModifiedDate(java.util.Date value) {
		this.modifiedDate = value;
	}
	
	public java.util.Date getModifiedDate() {
		return this.modifiedDate;
	}

	public String toString() {
		return ToStringBuilder.reflectionToString(this);
	}
	
	public int hashCode() {
		return new HashCodeBuilder()
			.append(getId())
			.toHashCode();
	}
	
	public boolean equals(Object obj) {
		if(obj instanceof Goods == false) return false;
		if(this == obj) return true;
		Goods other = (Goods)obj;
		return new EqualsBuilder()
			.append(getId(),other.getId())
			.isEquals();
	}
}

